﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DAL.LogicComponents;
using BAL.Entities;

namespace DigitalAnts.App_Code.BAL.Components
{
    public class clsProducerBAL
    {
        #region --- Product List by User
        public static DataTable doProducerSelectList()
        {
            try
            {
                return clsProducerDAL.querySelectProducerList();
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region -- select product 
        public static DataTable doProductSelectID(clsProducer obj)
        {
            try
            {
                return clsProducerDAL.querySelectProducer(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- Add Product by User
        public static bool doAddNewProducer(clsProducer obj)
        {
            try
            {
                return clsProducerDAL.queryAddProducer(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- Update Product by User
        public static bool doUpdateProducer(clsProducer obj)
        {
            try
            {
                return clsProducerDAL.queryUpdateProducer(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- Delete Product by User
        public static bool doDeleteProducer(clsProducer obj)
        {
            try
            {
                return clsProducerDAL.queryDeleteProducer(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- check Product exist by User
        public static bool CheckProducerExist(clsProducer obj)
        {
            try
            {
                return clsProducerDAL.CheckProducerExist(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion
    }
}